# -*- coding: utf-8 -*-
"""
Created on Thu May 16 19:49:05 2019

@author: yaoyu
"""


class Animal(object):
    def __init__(self, name):
        self.name = name
 
    def getInfo(self):
        print("This animal's name:", self.name)
 
    def sound(self):
        print("The sound of this animal goes?")
        

class Dog(Animal):
    def __init__(self, name, size):
        super().__init__(name)
        self.name = name
        self.__size = size

    def getInfo(self):
        print("This dog's name:", self.name) 
        print("This dog’s size:", self.__size)
        
        
class Cat(Animal):
    def sound(self):
        print("The sound of cat goes meow ~")